package com.hspedu.transformation;

import java.io.*;

/**
 * @author 谷其昊
 * @version 1.0
 * @date 2022/2/25
 * @time 15:17
 */
public class CodeQuestion {
    public static void main(String[] args) {
        String line = null;
        BufferedReader bufferedReader = null;

        try {
            bufferedReader = new BufferedReader(new FileReader("D:\\BaiduNetdiskDownload\\韩顺平2021基础学Java\\temp\\note2.txt"));

            while ((line  = bufferedReader.readLine()) != null){
                System.out.println(line);
            }
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }finally {
            if (bufferedReader != null){
                try {
                    bufferedReader.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }
    }
}
